package com.jiaai.cloud.wx.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.wx.entity.TWxshop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-22
 */
@Mapper
public interface TWxshopMapper extends BaseMapper<TWxshop> {

    TWxshop selectShopGoods(Integer shopid);

    void insertUserShop(@Param("userid") Integer userid, @Param("shopid") Integer shopid);

    void deleteUserShop(Integer shopid);

    List<TWxshop> selectFromGeoHash(@Param("geohash") String geoHash, @Param("shopname") String shopname);

    void deleteShopGoodss(Integer shopid);

    List<Integer> selectGoodsids(Integer shopid);
}